home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / wsynccur.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  610 b   |  30 lines

  1. /*
  2. ** wsynccur.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <stdio.h>
  9. #include "pictor.h"
  10.  
  11.  
  12. /*
  13. ** Sets the write position for current window.
  14. */
  15. void wsynccurs(void)
  16. {
  17.     if(_PL_winhead != NULL) {
  18.         /* hide cursor if not within window pane */
  19.         if((unsigned)_CURR_WPANE.row < (unsigned)getwrows() ||
  20.             (unsigned)_CURR_WPANE.column < (unsigned)getwcols()) {
  21.  
  22.             setcurs(_CURR_WPANE.top + _CURR_WPANE.row + 1,
  23.                 _CURR_WPANE.left + _CURR_WPANE.column + 1);
  24.         }
  25.         else
  26.             setcurs(_PL_rows + 1,1);
  27.     }
  28.  
  29. } /* wsynccurs */
  30.